<?php

namespace Modules\UI\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Factory;

class UIServiceProvider extends ServiceProvider
{
    /**
     * Boot the application events.
     *
     * @return void
     */
    public function boot()
    {
        require __DIR__.'/../Routes/api.php';
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $api = app('Dingo\Api\Routing\Router');
        $api->version('v1', ['namespace' => 'Modules\UI\Tests\Unit'], function ($api) {
            $api->post('/edit-tips', ['uses' => 'UI@store']);
        });
    }
}
